<html>
<head><meta charset="utf-8"><title>slow typing · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html">slow typing</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="171586154"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171586154" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171586154">(Jul 24 2019 at 08:03)</a>:</h4>
<p>How can I debug slowness while typing? The status panel doesn't show any long-running requests</p>



<a name="171586227"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171586227" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171586227">(Jul 24 2019 at 08:04)</a>:</h4>
<p>where does the output of <code>RA_PROFILE</code> go?</p>



<a name="171586228"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171586228" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171586228">(Jul 24 2019 at 08:05)</a>:</h4>
<p>Hm, we don't intersect any typing except for <code>\n</code>. If general typing is slow, that probably means that a problem is either withing the editor (perhaps some run-away extension?) or is due to the generally high load (I get slow tying when I compile rustc in the background :))</p>



<a name="171586240"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171586240" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171586240">(Jul 24 2019 at 08:05)</a>:</h4>
<p>The output of RA_PROFILE goes to stderr</p>



<a name="171586264"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171586264" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171586264">(Jul 24 2019 at 08:05)</a>:</h4>
<p>Also <code>.</code> for completion, I think?</p>



<a name="171586274"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171586274" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171586274">(Jul 24 2019 at 08:05)</a>:</h4>
<p>The editors usually have some way to see server's stderr. for VS Code, it's in the Output tab in the panel</p>



<a name="171586330"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171586330" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171586330">(Jul 24 2019 at 08:06)</a>:</h4>
<p>well, we do intercept <code>=</code> and <code>.</code>, but for formatting on typing requests, and they should be non-blocking</p>



<a name="171664628"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171664628" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171664628">(Jul 25 2019 at 05:21)</a>:</h4>
<p>Yeah, I'm not sure if it's RA or something else, but Code ends up being unbearably slow for me. I think it's the main Chrome process that ends up eating a little over one full CPU while I'm typing.</p>



<a name="171664729"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171664729" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171664729">(Jul 25 2019 at 05:23)</a>:</h4>
<p>There's nothing in the RA profile that takes more than 60ms or so (diagnostics are the slowest), but it takes some 3-500ms to display the letters that I'm typing</p>



<a name="171671118"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171671118" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> uni <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171671118">(Jul 25 2019 at 07:57)</a>:</h4>
<p>do you use vscodevim?</p>



<a name="171671125"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20typing/near/171671125" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20typing.html#171671125">(Jul 25 2019 at 07:57)</a>:</h4>
<p>no</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>